package ljz.server.session;

import io.netty.channel.Channel;

import java.util.concurrent.ConcurrentHashMap;

public class SessionImpl implements Session{
    private ConcurrentHashMap<String,Channel> aliveChannel = new ConcurrentHashMap<>();


    @Override
    public void bind(Channel channel, String username) {
        aliveChannel.put(username,channel);
    }

    @Override
    public void unbind(String username) {
        aliveChannel.remove(username);
    }

    @Override
    public Object getAttribute(Channel channel, String name) {
        return null;
    }

    @Override
    public void setAttribute(Channel channel, String name, Object value) {

    }

    @Override
    public Channel getChannel(String username) {
        return null;
    }
}
